/*
 * EventHandler.h
 *
 *  Created on: 08/01/2012
 *      Author: Graciela
 */

#include "Common.h"
#include "KeyListener.h"
#include <list>

#ifndef EVENTHANDLER_H_
#define EVENTHANDLER_H_

class EventHandler {
private:
	std::list<KeyListener *> keyListeners;

	void triggerOnKeyDown(SDL_Event * event);
	void triggerOnKeyUp(SDL_Event * event);

public:
	EventHandler();
	virtual ~EventHandler();
	void addKeyListener(KeyListener * listener);
	void update();
};

#endif /* EVENTHANDLER_H_ */
